package com.wanxing.sellerapp.emqx.entity;

import com.alibaba.fastjson.JSONObject;
import com.wanxing.sellerapp.emqx.enums.ActionEnum;


public class EmqMessage {

    /**
     * 事件
     */
    protected ActionEnum action;

    protected String userEndpoint;

    /**
     * 设备 uid
     */
    protected int mid;

    /**
     * 消息ID
     */
    protected String messageId;

    /**
     * 门编号
     */
    protected int doorNo;

    /**
     * 发送消息的时间戳
     */
    protected long timestamp;

    /**
     * 消息携带数据
     */
    protected JSONObject data;

    public ActionEnum getAction() {
        return action;
    }

    public void setAction(ActionEnum action) {
        this.action = action;
    }

    public int getMid() {
        return mid;
    }

    public void setMid(int mid) {
        this.mid = mid;
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public int getDoorNo() {
        return doorNo;
    }

    public void setDoorNo(int doorNo) {
        this.doorNo = doorNo;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public JSONObject getData() {
        return data;
    }

    public void setData(JSONObject data) {
        this.data = data;
    }

    public String getUserEndpoint() {
        return userEndpoint;
    }

    public void setUserEndpoint(String userEndpoint) {
        this.userEndpoint = userEndpoint;
    }
}
